package com.kjsb.service;

import com.kjsb.entity.User;

import java.util.List;

public interface UserService {
    /*
     *登录
     * @Method login
     * @Date 2022/11/26 10:25
     */
    User login(String username,String password);

    /*
     *查询所有用户
     * @Method getAllUsers
     * @Date 2022/11/26 10:22
     */
    public List<User> getAllUsers();

    /*
     *删除用户
     * @Method deleteUsers
     * @Date 2022/11/26 10:22
     */
    public boolean deleteUsers(Integer id);

    /*
     *新增用户
     * @Method saveUsers
     * @Date 2022/11/26 10:21
     */
    public boolean saveUsers(User user);

    /*
     *修改专家登录密码
     * @Method saveUsers
     * @Date 2022/11/26 10:21
     */
    public int updateExpertPassword(User user);

    /*
     *修改单位用户登录密码
     * @Method saveUsers
     * @Date 2022/11/26 10:21
     */
    public boolean updateUnitPassword(User user);

    User selectByUid(Integer uid);
}
